<html>
<head>
<title>Testing Shell Command</title>
</head>
<body>

<?php


if ($_POST["show"] == "yes") {
$output = shell_exec('ls');
echo "<pre>$output</pre>";
}



//<FORM NAME="Test" METHOD="POST" ACTION="testexe.php">
//<INPUT TYPE="submit" VALUE="show" NAME="Submit1">
//</FORM>

?>
</body>
</html>
